function diff = compareWidthProfiles( sktp, distTransform, range )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
% Range is the pixels to be used for the comparison as measured form teh
% ends
    numPoints = size(sktp,1);
    widthProfile = zeros(1, numPoints);
    for i = 1: numPoints
        widthProfile(i) = distTransform(sktp(i,1), sktp(i,2) );
    end
    endA = widthProfile(1:floor(length(widthProfile)/2));
    endB = widthProfile(floor(length(widthProfile):-1:floor(length(widthProfile)/2)+1) );
    diff = 0;
    for i = range(1):range(2)
        diff = diff + (endA(i) - endB(i));
    end
        

end

